﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    if (Request.IsAuthenticated) {
%>
         <a><%= Html.Encode(Page.User.Identity.Name) %></a>
         &nbsp;|&nbsp;
        [ <%= Html.ActionLink("注销", "LogOff", "Login") %> ]
<%
    }
    else {
%> 
        [ <%= Html.ActionLink("登陆", "LogOn", "Login")%> ]
<%
    }
%>
